<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改免训信息')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-stu-edit" >
			<input name="id"  type="hidden"  th:value="${id}" />
			<input name="stuId"  type="hidden"  th:value="${stuId}" />
			<div class="row">
				<div class="col-xs-6">
					<div class="form-group">
						<label class="col-sm-3 control-label is-required">院系：</label>
						<div class="col-sm-8">
							<input class="form-control" type="text" name="trainColloge" id="trainColloge" required th:value="${tra==null?'':tra.trainColloge}">
						</div>
					</div>
				</div>
				<div class="col-xs-6">
					<div class="form-group">
						<label class="col-sm-3 control-label is-required">班级：</label>
						<div class="col-sm-8">
							<input class="form-control" type="text" name="trainClass" id="trainClass" required th:value="${tra==null?'':tra.trainClass}">
						</div>
					</div>
				</div>

			</div>


			<div class="row">
				<div class="col-xs-6">
					<div class="form-group">
						<label class="col-sm-3 control-label">年级：</label>
						<div class="col-sm-8">
							<input class="form-control" type="text" id="comeGrade" name="comeGrade" th:value="${tra==null?'':tra.comeGrade}">
						</div>
					</div>
				</div>
				<div class="col-xs-6">
					<div class="form-group">
						<label class="col-sm-3 control-label">家长联系方式：</label>
						<div class="col-sm-8">
							<input class="form-control" type="text" id="trainParentPhone" name="trainParentPhone" th:value="${tra==null?'':tra.trainParentPhone}">
						</div>
					</div>
				</div>

			</div>





			<div class="row">
				<div class="col-xs-6">
					<div class="form-group">
						<label class="col-sm-3 control-label">学生联系方式：</label>
						<div class="col-sm-8">
							<input class="form-control" type="text" name="trainStuPhone" required th:value="${tra==null?'':tra.trainStuPhone}">
						</div>
					</div>
				</div>
				<div class="col-xs-6">
					<div class="form-group">
						<label class="col-sm-3 control-label is-required">免训原因：</label>
						<div class="col-sm-8">
							<textarea class="form-control" type="text" name="trainReason" required th:text="${tra==null?'':tra.trainReason}"></textarea>
						</div>
					</div>
				</div>

			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		var prefix = ctx + "common/train";
	
		$("#form-stu-edit").validate({
			rules:{
				dictSort:{
					digits:true
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/edit", $('#form-stu-edit').serialize());
	        }
	    }


	</script>
</body>
</html>
